GtkIconHelper: Trigger preload when css sizes is valid
authorAlexander Larsson <alexl@redhat.com>
Fri, 7 Feb 2020 16:26:22 +0000 (17:26 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 7 Feb 2020 16:26:22 +0000 (17:26 +0100)
commit24fede022508ce6945a504a66a2303e6c65dcc11
tree6a29eedda560c4fa78820e1c9504c4e43f2c8599
parente27413a9ed5ce0d18895ec02b7f45d84b39440ee
GtkIconHelper: Trigger preload when css sizes is valid

When the css is validated we know the css size, so we can
create the paintable at that point, and we do so passing the
LOAD_IN_THREAD flag.

This causes us to load most icons early on, in parallel instead of
during the first snapshot.
gtk/gtkiconhelper.c